package com.lepu.app.fun.my.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class BeanMyUserInfoKeShi {

	public String InstitutionID;//	机构ID	Int
	public String InstitutionName;//	机构名称	string
	public String Phone;//	电话	string
	public String Address;//	详细地址	String
	
	public static ArrayList<BeanMyUserInfoKeShi> parseJsonData(String dataString)
	{
		String result = "";
		try {
			JSONObject jsonObject = new JSONObject(dataString);
			JSONObject obj1 = (JSONObject) jsonObject.get("Result");
			JSONArray jsonArray = obj1.getJSONArray("ListInfo");
			
			result = jsonArray.toString();
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
		Gson gson = new Gson();
		ArrayList<BeanMyUserInfoKeShi> testArraylist = gson.fromJson(result,
				new TypeToken<List<BeanMyUserInfoKeShi>>() {
				}.getType());
		return testArraylist;
	}

}
